    <div id="seotoaster">
        <div class="success" id="comment-success" style="z-index:999;width:300px;display:none;">
            <ul>
                <li id="added" style="display:none;">Your comment was added.</li>
                <li id="addedwait" style="display:none;">Your comment was added and awaits for moderation.</li>
            </ul>
        </div>

        <div class="errors" id="comment-errors-<?php echo $this->commentsBlockName;?>" style="z-index:999;width:300px; display:none;">
            <ul>
                <li id="comment-name-empty-error-<?php echo $this->commentsBlockName;?>" style="display:none;">The Name field cannot be empty.</li>
                <li id="comment-email-empty-error-<?php echo $this->commentsBlockName;?>" style="display:none;">The Email field cannot be empty.</li>
                <li id="comment-email-regex-error-<?php echo $this->commentsBlockName;?>" style="display:none;">Please enter a valid email address.</li>
                <li id="comment-content-empty-error-<?php echo $this->commentsBlockName;?>" style="display:none;">The Content field cannot be empty.</li>
                <li id="comment-content-lenght-error-<?php echo $this->commentsBlockName;?>" style="display:none;">The Content field must contain more than 2 characters.</li>
                <li id="comment-captcha-invalid-error-<?php echo $this->commentsBlockName;?>" style="display:none;">The Captcha entered code is invalid.</li>
                <li id="comment-captcha-empty-error-<?php echo $this->commentsBlockName;?>" style="display:none;">The Captcha field cannot be empty.</li>

            </ul>
        </div>
    </div>
  

        
        <form name="comment-form-<?php echo $this->commentsBlockName;?>" id="comment-form-<?php echo $this->commentsBlockName;?>" action="javascript:addComment('<?php echo $this->containerId;?>','<?php echo $this->commentsBlockName;?>','<?php echo $this->countComments; ?>','<?php echo $this->requestedPage;?>','<?php echo $this->publishedByDefault;?>');" method="post" onsubmit="return checkPostCommentForm('<?php echo $this->commentsBlockName;?>');" class="comment-form">
           <fieldset><legend>Post a comment:</legend>
		    <p>
                <input type="text" id="sign-<?php echo $this->commentsBlockName;?>" name="sign" value="" />
                <label >{%Name (required)%}</label>
            </p>

            <p>
                <input type="text" id="email-<?php echo $this->commentsBlockName;?>" name="email" value="" />
                <label >{%Mail (will not be published) (required)%}</label>
            </p>

            <p>
                <input type="text" id="website-<?php echo $this->commentsBlockName;?>" name="website" value="http://" />
                <label>{%Website%}</label>
            </p>

            <p>
                <input type="checkbox" id="notify-<?php echo $this->commentsBlockName;?>" name="notify" value="" />
                <label >{%Notify me of followup comments via e-mail.%}</label>
            </p>
            <div id="captcha">
            <p>
                <img style="width:200px; border:none;" id="captcha-image" src="<?php echo $this->websiteUrl;?>public/tmp/<?php echo $this->captchaId ?>.png" alt=""/><br />
            </p>
            <p>
                <input type="text" name="captcha[input]" id="captcha-input" />
                <input type="hidden" value="<?php echo $this->captchaId ?>" id="captcha-id" name="captcha[id]"/>
                <label >{%Enter the string above.%}</label>
            </p>
            </div>
            <p>
                <textarea name="post_content" id="post-content-<?php echo $this->commentsBlockName;?>" rows="4" cols="30"></textarea>
            </p>
            <p>
                <input id="submit-comment" type="submit" value="{%Post Comment%}" />
            </p>
            <input type="hidden" id="keyword-<?php echo $this->commentsBlockName;?>"             name="keyword-<?php echo $this->commentsBlockName;?>"             value="<?php echo $this->keyword?>" />
            <input type="hidden" id="topic-<?php echo $this->commentsBlockName;?>"               name="topic-<?php echo $this->commentsBlockName;?>"               value="<?php echo $this->topic?>" />
            <input type="hidden" id="publishedbydefault-<?php echo $this->commentsBlockName;?>"  name="publishedbydefault-<?php echo $this->commentsBlockName;?>"  value="<?php echo $this->publishedByDefault?>" />
            <input type="hidden" id="websiteUrl"  name="websiteUrl"  value="<?php echo $this->websiteUrl;?>" />
        </fieldset>
		</form>
    
    <!-- Start comments list-->
        <div id="commentslinkholder">
         <?php if($this->commentsArray && sizeof($this->commentsArray)>$this->countComments) { ?>
            <a href="javascript:void(0);" onclick="showHideComments('<?php echo $this->commentsBlockName;?>','<?php echo $this->countComments; ?>')" id="show-all-comments-<?php echo $this->commentsBlockName;?>"  title="Show All Comments" >Show all comments</a>
            <?php } ?>
        </div>
        <ol id="comments-ol-<?php echo $this->commentsBlockName;?>" class="comments-ol-list">
            <?php if($this->commentsArray ) {
                static $i=0;

                foreach ($this->commentsArray as $comment) {?>
                    <?php if($comment['publish']==1){
                        $style =  'position:relative;';
                        $publishedLink=false;
                        }
                    else{
                        $style = 'position:relative;border:1px dotted red;display:auto;';
                        $publishedLink = true;
                        }
                    ?>
            <li class="comments-block" id="comment-item-li-<?php echo $comment['id'];?>"  <?php $i++; if($i>$this->countComments) { $style.= 'display:none;'; } ?> style="<?php echo $style;?>" >                 
                       <abbr class="comment-timestamp" title="<?php echo $comment['date'];?>"><?php echo $comment['date'];?>: </abbr> 
                       <a class="comment-author" href="<?php echo $comment['user_website'];?>" title="<?php echo $comment['user_website'];?>" rel="nofollow"><?php echo $comment['user_sign'];?></a> says:                     
                    <blockquote class="comment-body"><?php echo $comment['content'];?></blockquote>
				   
				   
				   
				    <?php if(isset($publishedLink) && $publishedLink ){  ?>
                   <a class="publish-comments-link" title="Publish this comment" onclick="if(confirm('Do you really want to publish this comment?')){publishComment('<?php echo $comment['id'];?>'); }" href="javascript:void(0);" style="border:none;position:absolute;top:1px;right:4px">
                 <img style="border:none;" alt="Publish this comment" src="<?php echo $this->websiteUrl;?>system/images/ico_publish.png"/>
                         </a>
                   <?php }?>
                    
                            <?php if($this->isLogged) { ?>
                        <a class="deletecomment" title="Delete this comment" onclick="if(confirm('Do you really want to delete this comment?')){deleteComment('<?php echo $comment['id'];?>'); }" href="javascript:void(0);" style="border:none;position:absolute;top:3px;right:20px">
                        <img alt="Delete this comment" src="<?php echo $this->websiteUrl;?>system/images/ico_delete.gif"/></a>

                            <?php } ?>
            </li>
                <?php } } ?>
        </ol>